package infra.mongodb.document;

import domain.model.project.Project;

/**
 * @author Gregory Boissinot
 */
public class MongoDBProjectDocumentImpl implements MongoDBProjectDocument {

    public static final String DEFAULT_VERSION = "1.0";

    private final String version;
    private final Project project;

    public MongoDBProjectDocumentImpl(String version, Project project) {
        this.version = version;
        this.project = project;
    }

    @Override
    public String getVersion() {
        return version;
    }

    @Override
    public Project getProject() {
        return project;
    }

    @Override
    public Object getQueryObject() {
        return project.getProjectId();
    }

}
